#include <stdlib.h>
#include <stdio.h>
#include <List.h>
#include <Node.h>
#include <Object.h>



int main(int argc, char **argv)
{
	int i, n;
	ListPtr list;
	NodePtr node;
	int *object;

	n=1000;
	list = createList(equals, toString, freeObject);
	for (i=0; i<n; i++) {
		object = (int *) malloc(sizeof(int));
		*object = i;
		node = createNode(object);
		addAtFront(list, node);
	}

	printList(list);
	freeList(list);
	exit(0);
}